package com.tanhua.server.service;

import com.tanhua.dubbo.api.UserApi;
import com.tanhua.model.domain.User;
import com.tanhua.model.vo.HuanXinUserVo;
import com.tanhua.server.interceptor.UserHolder;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class HuanXinService {
    /*@DubboReference
    private UserApi userApi;*/
    /**
     * 查询环信的账号密码
     * 1、获取用户id，根据账号规则拼接
     * 2、获取用户id，查询用户对象
     */
    public HuanXinUserVo findHuanXinUser() {
       /* User user=userApi.findById(UserHolder.getId());
        if (user==null){
            return null;
        }
//        return new HuanXinUserVo(user.getHxUser(),user.getHxpassword());*/
        return null;
    }
}
